package com.cloud.gateway.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * nacos配置文件类
 *
 * @author 王霄
 * @date 2022/8/13 17:52
 */
@Configuration
@Data
public class NacosRouteProperties {

    @Value("${spring.cloud.nacos.discovery.server-addr}")
    private String nacosServerAddress;

    @Value("${spring.cloud.nacos.config.namespace}")
    private String routeNamespace;

    @Value("${spring.cloud.nacos.config.group}")
    private String routeGroup;

    private String routeDataId = "gateway-routes.json";
}